<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ include file="/resource/jsp/edit_top.jsp"%>
<script language="javascript"
	src="<%=request.getContextPath()%>/resource/js/dialog.js"></script>
<script language="javascript"
	src="<%=request.getContextPath()%>/resource/js/btn.js"></script>
<c:if test="${methodStyle != 'edit'}">
	<form action="save.do" method="post" id="form1">
	<div id="handlerPanel" class="handlerPanel"><input type="submit"
		value="保存" class="btnGray" onclick="return conMd5();" /></div>
</c:if>
<c:if test="${methodStyle == 'edit'}">
	<form action="update.do" method="post" id="form1">
	<div id="handlerPanel" class="handlerPanel"><input type="submit"
		value="保存" class="btnGray" /></div>
</c:if>
<center>
<h3>添加部门</h3>
<s:fielderror cssStyle="color:red;" /> 
<table class="tableClass" width="95%">
	<tr>
		<td class="title">名称</td>
		<td><input type="text" name="department.name" class="inputClass"
			value="${department.name}" /><span style="color: red;">*</span></td>
		<td class="title">领导</td>
		<td><input type="text" id="leaderPostid"
			name="department.leaderPost.id" style="display: none"
			value="${department.leaderPost.id}" /> <input type="text"
			id="leaderPostname" name="person.leaderPost.name" class="inputClass"
			value="${department.leaderPost.name}" /><a
			href="#"
			onClick="selectList('getPostServiceImp','leaderPostid','leaderPostname');">选择</a></td>
		<td class="title">上级部门</td>
		<td><input type="text" id="departmentid"
			name="department.upperDepartment.id" style="display: none"
			value="${department.upperDepartment.id}" /> <input type="text"
			id="departmentname" name="department.upperDepartment.name"
			class="inputClass" value="${department.upperDepartment.name}" /> <a
			href="#"
			onClick="selectList('getDepartmentServiceImp','departmentid','departmentname');">选择</a></td>
	</tr>
	</center>
	<input type="text" name="department.id" style="display: none"
		value="${department.id}" />
	</form>
	<%@ include file="/resource/jsp/edit_down.jsp"%>